import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import dataV from '@jiaminghi/data-view'
import './registerServiceWorker'
import axios from 'axios'
import VueAMap from 'vue-amap'
import componets from './components/install'

Vue.use(dataV)
Vue.use(componets)
Vue.use(VueAMap)

VueAMap.initAMapApiLoader({
  key: 'b2e1331bc6f5b3ae592d76368e37baa2',
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor', 'AMap.Geolocation'],
  v: '1.4.4'
})

Vue.config.productionTip = false
Vue.prototype.$axios = axios

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
